package com.xyh.flowershop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xyh.flowershop.domain.Comment;
import com.xyh.flowershop.vo.req.comment.CommentPageReqVo;
import com.xyh.flowershop.vo.req.comment.CommentReqVo;
import com.xyh.flowershop.vo.resp.comment.CommentRespPageVo;

/**
 * @author 小约翰可汗
 * @className CommentInterface
 * @createTime 2024/5/3020:06
 */
public interface CommentService extends IService<Comment> {

    /**
     * 发布评论
     * @param vo
     */
    String publishComment(CommentReqVo vo);

    /**
     * 检验用户是否购买此商品
     * @param id
     * @return
     */
    Boolean checkIsBuyer(String id);

    /**
     * 分页查询评论
     * @param vo
     * @return
     */
    IPage<CommentRespPageVo> findCommentByPage(CommentPageReqVo vo);
}
